package demo1;

public class Test {

    public static void main(String[] args)
            throws CloneNotSupportedException{
        Person person = new Person("林镖");
        Person person2 = (Person)person.clone();
        System.out.println("修改前：");
        System.out.println(person.money.money);
        System.out.println(person2.money.money);

        person2.money.money = 19.9;
        System.out.println("修改后：");
        System.out.println(person.money.money);
        System.out.println(person2.money.money);


    }

}
